<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

    let P=    function fn(){

        }
        P.prototype.name="张三"
        P.prototype.gender="男"
        P.prototype.play=function(){
            console.log(this.name);
        }
        const person=new P()
        person.age=16
        person.play()
        console.log(person);
        console.dir(P);


        const rep=new RegExp()





        let arr=[1,2,4]
        // console.log(...arr);

        const [a]=arr
        console.log(a);
        const obj={
            name:"张三",
            age:16
        }
       

     
        obj.name="lisi"//
        obj["age"]=345


        const {age}=obj
        console.log(age);

    </script>
</body>
</html>